import request from '@/utils/request'

// 查询点赞列表
export function listOk(query) {
	return request({
		url: '/ok/ok/list',
		method: 'get',
		params: query
	})
}

// 查询点赞详细
export function getOk(id) {
	return request({
		url: '/ok/ok/' + id,
		method: 'get'
	})
}

// 新增点赞
export function addOk(data) {
	return request({
		url: '/ok/ok',
		method: 'post',
		data: data
	})
}

// 修改点赞
export function updateOk(data) {
	return request({
		url: '/ok/ok',
		method: 'put',
		data: data
	})
}

// 删除点赞
export function delOk(id) {
	return request({
		url: '/ok/ok/' + id,
		method: 'delete'
	})
}

// 删除点赞
export function addOk2(data) {
	return request({
		url: '/ok/ok/cancel',
		method: 'delete',
		data: data
	})
}